package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/logshandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitLogsRouter() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		{
			l := g.Group("logs")

			l.Use(middlewares.JwtAuthMiddleware)
			l.GET("/login-logs", logshandler.GetLoginLogsList)               //
			l.GET("/place-price-logs", logshandler.GetPlacePriceLogsList)    // 门店计费规则变更 日志
			l.GET("/user-profit-log", logshandler.GetUserOperateLogList)     // 用户信息变更日志
			l.GET("/order-operate-log", logshandler.GetOrderOperateLogList)  // 后台订单操作日志
			l.GET("/place-operate-log", logshandler.GetPlaceOperateLogList)  // 门店信息变更 日志
			l.GET("/scan-log-list", logshandler.HandleGetScanLogsList)       // 扫码日志
			l.GET("/file-down-log", logshandler.GetDownloadLogsList)         // 文件导出日志
			l.GET("/wx-bind-log", logshandler.GetWxBindLogsList)             // 微信绑定日志
			l.GET("/service-click-log", logshandler.GetServiceClickLogsList) // 服务点击日志
			l.GET("/spa-log", logshandler.GetSpaLogsList)                    // 预约按摩日志
		}
	}
}
